package com.villaday.idf.activity;

import androidx.fragment.app.FragmentManager;import androidx.fragment.app.FragmentTransaction;

import com.villaday.idf.R;
import com.villaday.idf.base.BaseActivity;
import com.villaday.idf.fragment.MessageFragment;

public class NotifyActivity extends BaseActivity {
    FragmentManager fragmentManager;


    @Override
    protected int getViewResId() {
        return R.layout.activity_jdmsbs;
    }

    @Override
    protected void init() {
        if (fragmentManager == null) {
            fragmentManager = getSupportFragmentManager();
        }
        FragmentTransaction transaction = fragmentManager.beginTransaction();
        MessageFragment messageFragment = MessageFragment.instance();
        transaction.add(R.id.fl_main, messageFragment, "0");
        transaction.commitAllowingStateLoss();
    }
}

